<template>
  <div>
    <h1>{{name}}</h1>
    <h2>{{age}}</h2>
    <button @click="showName">点我测试混入mixin, 弹出alert名称</button>
    <button @click="test">点我测试插件plugin, 弹出alert hello</button>
  </div>
</template>

<script>
// import { showName } from '../mixin'

export default {
  name: 'StudentView',
  data() {
    return {
      name: 'Zoe',
      age: 18,
      x: 200
    }
  },
  methods: {
    test() {
      this.hello()
    }
  }
  // mixins: [showName]
}
</script>

<style>

</style>